package stores;

import java.sql.SQLException;
import java.util.List;

import workspace.Workspace;
import beans.Foglalo;

public interface FoglaloStore {

	List<Foglalo> loadFoglaloLista(Workspace workspace) throws SQLException;

	Foglalo loadFoglaloByName(Workspace workspace, String foglaloNev)
			throws SQLException;

	Foglalo loadFoglaloById(Workspace workspace, long id) throws SQLException;

	Foglalo insertFoglalo(Workspace workspace, Foglalo ujFoglalo)
			throws SQLException;

	Foglalo updateFoglalo(Workspace workspace, Foglalo updateFoglalo)
			throws SQLException;

	boolean deleteFoglalo(Workspace workspace, long id) throws SQLException;

	boolean deleteFoglaloForTest(Workspace workspace, long id)
			throws SQLException;
}
